package com.mjh.zhujianju.service.party;

import com.livew.framework.base.service.BaseService;
import com.livew.framework.exception.XTBusinessException;
import com.livew.framework.page.PagedResult;
import com.mjh.zhujianju.model.party.BuildingEventEO;
import com.mjh.zhujianju.model.party.BuildingEventUsersEO;
import com.mjh.zhujianju.vo.party.BuildingEventUsersVO;
import com.mjh.zhujianju.vo.party.BuildingEventVO;
import com.mjh.zhujianju.vo.party.BuildingNewsVO;

import java.util.List;
import java.util.Map;

/**
 * @author liuyang
 * @Description: 活动
 * @date 2018/8/16 22:15
 */
public interface BuildingEventSercice extends BaseService<BuildingEventEO> {

    /**
     * 首页列表展示->wx
     * @return
     */
    List<BuildingEventVO> queryBuildingEventIndexList();

    /**
     * 所有信息展示->wx
     * @return
     */
    List<BuildingEventVO> queryBuildingEventListIndex(String type);


    /**
     * 查询用户报名的活动->wx
     * @return
     */
    Map<String,List<BuildingEventVO>> queryBuildingEventList(Long userId);

    /**
     * 根据政策id查询详细信息->wx
     * @param id
     * @return
     */
    BuildingEventVO queryBuildingEventInfo(Long id);

    PagedResult<BuildingEventVO> findBuildingEventPagination(BuildingEventEO buildingEventEO);

    /**
     * 保存
     * @param buildingEventVO
     * @throws XTBusinessException
     */
    void saveInfo(BuildingEventVO buildingEventVO) throws XTBusinessException;

    /**
     * 查找详情
     * @param id
     * @throws XTBusinessException
     */
    BuildingEventVO getInfo(Long id) throws XTBusinessException;

    /**
     * 参与会议人员详情
     * @param buildingEventUsersEO
     * @return
     */
    PagedResult<BuildingEventUsersVO> findBuildingEventUsersPagination(BuildingEventUsersEO buildingEventUsersEO);
}
